#include"global.h"
std::function<void (QWidget *)> repolish=[](QWidget *w){
    w->style()->unpolish(w);
    w->style()->polish(w);
};

QString gate_url_prefix = "";

std::function<QString(const QString&)> passwordEncryptor=[](const QString& password){
    QString encryptedPassword;
    int passwordLength = password.length();
    for (QChar c : password) {
        // 对每个字符进行异或操作
        QChar encryptedChar = static_cast<QChar>(c.unicode() ^ passwordLength);
        encryptedPassword.append(encryptedChar);
    }
    return encryptedPassword;
};
